#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QDebug>
#include <QKeyEvent>

class MyLineEdit;
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    bool eventFilter(QObject *obj,QEvent *event);
    ~Widget();

protected:
    void keyPressEvent(QKeyEvent *event);
private:
    Ui::Widget *ui;
    MyLineEdit *lineEdit;
};
#endif // WIDGET_H
